package org.ztest.spring.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.ztest.spring.di.AppConfig;

public class AopTest
{
    public void test()
    {
        AnnotationConfigApplicationContext app = new AnnotationConfigApplicationContext(AppConfig.class);
        AopInterface aop = app.getBean(AopInterface.class);
        aop.test2();
        app.close();
    }
}
